package com.qingzhu.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class User {

    private int id;
    private String userName;
    private String password;
    private String phone;
    private String email;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date created;
    private String nickName;
    private String name;
    private String status;
    private String headPic;
    private String qq;
    private String sex;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date birthday;
    private String addressUrl;
    private String hometownUrl;

    private Address address;
    private Address hometown;
}
//          `id` BIGINT(20) NOT NULL AUTO_INCREMENT,
//          `username` VARCHAR(50) NOT NULL COMMENT '用户名',
//          `phone` VARCHAR(20) DEFAULT NULL COMMENT '注册手机号',
//          `email` VARCHAR(50) DEFAULT NULL COMMENT '注册邮箱',
//          `created` DATETIME NOT NULL COMMENT '创建时间',
//          `nick_name` VARCHAR(50) DEFAULT NULL COMMENT '昵称',
//          `name` VARCHAR(50) NOT NULL COMMENT '真实姓名',
//          `status` VARCHAR(1) NOT NULL COMMENT '使用状态（Y正常 N非正常）',
//          `head_pic` VARCHAR(150) DEFAULT NULL COMMENT '头像地址',
//          `qq` VARCHAR(20) DEFAULT NULL COMMENT 'QQ号码',
//          `sex` VARCHAR(1) DEFAULT '0' COMMENT '性别，1男，2女',
//          `birthday` DATE DEFAULT NULL COMMENT '生日',